package com.ruoyi.project.goods.order.mapper;

import java.util.List;
import com.ruoyi.project.goods.order.domain.GoodsOrderHead;
import org.apache.ibatis.annotations.Param;

/**
 * 订单明细Mapper接口
 * 
 * @author lonsn
 * @date 2020-11-12
 */
public interface GoodsOrderHeadMapper 
{
    /**
     * 查询订单明细
     * 
     * @param orderHeadId 订单明细ID
     * @return 订单明细
     */
    public GoodsOrderHead selectGoodsOrderHeadById(Long orderHeadId);

    /**
     * 查询订单明细列表
     * 
     * @param goodsOrderHead 订单明细
     * @return 订单明细集合
     */
    public List<GoodsOrderHead> selectGoodsOrderHeadList(GoodsOrderHead goodsOrderHead);

    /**
     * 新增订单明细
     * 
     * @param goodsOrderHead 订单明细
     * @return 结果
     */
    public int insertGoodsOrderHead(GoodsOrderHead goodsOrderHead);

    /***
     * 批量新增
     * @param list
     * @return
     */
    public  int insertBatchGoodsOrderHead(@Param("list") List<GoodsOrderHead> list);
    /**
     * 修改订单明细
     * 
     * @param goodsOrderHead 订单明细
     * @return 结果
     */
    public int updateGoodsOrderHead(GoodsOrderHead goodsOrderHead);

    /**
     * 删除订单明细
     * 
     * @param orderHeadId 订单明细ID
     * @return 结果
     */
    public int deleteGoodsOrderHeadById(Long orderHeadId);

    /**
     * 批量删除订单明细
     * 
     * @param orderHeadIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteGoodsOrderHeadByIds(String[] orderHeadIds);
}
